//
//  BaoxiuCommentView.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/10/18.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit

class BaoxiuCommentView: UIView {

    
    lazy var beizhuLbl: UILabel = {
        let lbl = UILabel(content: "备注(非必选)", textFont: UIFont.boldSystemFont(ofSize: 15 * ScaleX), color: #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1), alignment: .left, numberOfLine: 0)
        return lbl
    }()
    
    lazy var textView: UITextView = {
        let tf = UITextView(frame: CGRect.zero)
        tf.attributedText = NSAttributedString(string: "备注选填", attributes: nil)
        tf.layer.borderColor = #colorLiteral(red: 0.9568627451, green: 0.9568627451, blue: 0.9568627451, alpha: 1)
        tf.layer.borderWidth = 1
        tf.layer.cornerRadius = 5
      
        
        return tf
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
    
      
        addSubview(beizhuLbl)
        addSubview(textView)
        
        beizhuLbl.snp.makeConstraints { (make) in
            make.left.equalTo(self).offset(50)
            make.top.equalTo(self).offset(15)
        }
        
        textView.snp.makeConstraints { (make) in
            make.top.equalTo(beizhuLbl.snp.bottom).offset(10)
            make.left.equalTo(beizhuLbl)
            make.right.equalTo(self).offset(-50)
            make.height.equalTo(100)
            make.bottom.equalTo(self).offset(-15)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
